home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4426 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: peer-news.britain.eu.net!strath-cs!st-and!pasta!anb
  2. From: Andrew <anb@st-andrews.ac.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: How can I sync my game to 25 fps?
  5. Date: Sun, 4 Feb 1996 15:37:16 +0000
  6. Organization: St. Andrews University
  7. Message-ID: <Pine.SUN.3.91.960204152753.10685C-100000@pasta>
  8. NNTP-Posting-Host: pasta.st-and.ac.uk
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11. NNTP-Posting-User: anb
  12. X-Sender: anb@pasta
  13.  
  14. I want a routine that will make my game run at 25fps even on a machine 
  15. that could run it at 90fps. Therefore I need a way to read the internal 
  16. clock at the start of the frame. Then, when I have finished all the 
  17. processing for that frame the computer must wait until 1/25th of a second 
  18. has elapsed since that start of the frame?
  19.  
  20. This routine must be independent of processor speed. I am sure this is 
  21. really quite easy if you have some idea how to program - unfortunately I 
  22. don't. 
  23.  
  24. A free copy of my game to anyone with the correct answer. It's a 2 player 
  25. arcade shoot 'em up.
  26.  
  27. Thanks,  
  28.  
  29. Andrew Bainbridge.
  30.